<html>
  <head>
    <title>listsuccessfulpbcdata.html</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
    <link href="../../css/general1.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../script/prototype.js"></script>
    <script type="text/javascript" src="/vchzms-hiaward/dwr/engine.js"> </script>
	<script type="text/javascript" src="/vchzms-hiaward/dwr/util.js"> </script>
    <script type="text/javascript" src="/vchzms-hiaward/dwr/interface/OperatePbcFileDwrAction.js"></script>
     <script type="text/javascript" src="/vchzms-hiaward/dwr/interface/SetKeyAndValueDwrAction.js"></script>
  </head>
  <body>
    <div id="parsesuccessfulList" style="left: 200px"> 
    </div>
    <div id="edit"></div>
    <script type="text/javascript">
        var localUrl=window.location.href;
        var pos=localUrl.indexOf('=');
        var param=localUrl.substring(pos+1);
        alert(param);
        var configData=new Object();
        //var date,session;
        configData.subno=param;
        var date=null;
         var session=null;
        SetKeyAndValueDwrAction.getConfigDataByProperties(configData,function(data){
         alert(data.length);
         for(var i=0;i<data.length;i++){
            if(data[i].key=='VCHZMS_PBCDATA_DATE'){
              date=data[i].value;
              alert(date+"-----");
            }
            if(data[i].key=='VCHZMS_PBC_SESSION'){
             session=data[i].value;
             alert(session);
            }
         }
        });
       var originalPbcData=new Object();
       originalPbcData.subno=param;
       originalPbcData.vcsession=session;
       originalPbcData.vchdate=date;
       originalPbcData.state=1;
       var content="<table width='700' border='0' cellspacing='0' cellpadding='0' class='tablist1'><tr><td class='title2'>" + 
      	  	"<span>解析成功人行数据列表</span></td></tr></table><table width='700' border='0' cellspacing='0' cellpadding='0' class='tablist1'><tr></tr><tr>" + 
          		"<th><span>日期</span></th><th><span>场次</span></th><th><span>分行号</span></th></tr>";
       OperatePbcFileDwrAction.listOrigianlPbcDataByProperties(originalPbcData,function(data){
          for(var i=0;i<data.length;i++){
             pbcsid=data[i].pbcsid;
             content+="<tr><td>"+data[i].vchdate+"</td><td>"+data[i].vcsession+"</td><td>"+data[i].subno+"</td></tr>";
          }
          content+="</table><button>发起预处理</button>";
          $("parsesuccessfulList").innerHTML=content;
       });
    </script>
  </body>
</html>
